package com.czxy.demo23;

public class Cat extends Animal {
    private String color;

    @Override
    public String toString() {
        return "Cat{" +
                "color='" + color + '\'' +
                '}';
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public Cat(String id, String name, String color) {


        super(id, name);
        this.color = color;
    }

    public Cat(String color) {
        this.color = color;
    }
}